package cn.jh.common.pay.jdpush;

/**
 * @author Yichuan
 * @version 1.0
 */
public enum PayBarCardType {

    DEBIT("DEBIT", "借记卡"),

    CREDIT("CREDIT", "贷记卡/信用卡"),

    ;

    final String value;

    final String desc;

    PayBarCardType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static PayBarCardType forString(String input) {
        if (DEBIT.value.equals(input)) {
            return DEBIT;
        } else if (CREDIT.value.equals(input)) {
            return CREDIT;
        }
        return null;
    }
}
